package com.example.day05;

public class StaticTest {

    public static void main(String[] args) {

    }

}

class Human {
    private String name;
    private static String earth; // 地球 隶属于 *类对象*

    public static void main(String[] args) {
        Human tom = new Human();
        Human jerry = new Human();

        tom.name = "Tom";
//        jerry.name = "Jerry";

        System.out.println(tom.name);
        System.out.println(jerry.name);

        Human.earth = "Tom 种了一棵树。";
        System.out.println(tom.earth);
        System.out.println(jerry.earth); // ?
    }
}